package com.example.safeassistan.home.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.safeassistan.R;
import com.example.safeassistan.risk.model.RiskPointtableModel;

import java.util.List;

public class RiskDetailTableFragmentAdapter extends BaseQuickAdapter<RiskPointtableModel.ResultDTO,BaseViewHolder> {
    public RiskDetailTableFragmentAdapter(@Nullable List<RiskPointtableModel.ResultDTO> data) {
        super(R.layout.item_riskdetail_table_fragment, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, RiskPointtableModel.ResultDTO item) {
        helper.setText(R.id.tvControl,item.getTableName()+"("+item.getCheckCount()+")");
        helper.setText(R.id.tvIntro,item.getTableName()+"检查表");
    }

}
